package com.zmovie.front.aspect;

import com.zmovie.front.util.DateUtil;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @author 挚爱之夕
 * @version 1.0
 * @implSpec com.zmovie.front.aspect
 * @since 2023-12-16 16:39
 */
public class Test {
    public static void main(String[] args) {
        Calendar nowCalendar = Calendar.getInstance();
        Date date = new Date();
        Date date1 = DateUtil.addMonth(date, -2);
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println(format.format(date1));
    }
}
